<template>
  <view class="user-container">
    <view class="user-header">
      <view class="avatar">
        <image src="/static/logo.png" mode="aspectFill"></image>
      </view>
      <view class="user-info">
        <view class="username">用户昵称</view>
        <view class="user-desc">点击登录</view>
      </view>
    </view>
    <view class="user-menu">
      <view class="menu-item">
        <text class="menu-icon">📝</text>
        <text class="menu-text">我的收藏</text>
      </view>
      <view class="menu-item">
        <text class="menu-icon">📋</text>
        <text class="menu-text">历史记录</text>
      </view>
      <view class="menu-item">
        <text class="menu-icon">⚙️</text>
        <text class="menu-text">设置</text>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      title: '我的'
    }
  },
  onLoad() {
    console.log('用户页面加载')
  },
  methods: {
    // 可以在这里添加方法
  }
}
</script>

<style scoped>
.user-container {
  padding-top: 20rpx;
  padding-bottom: 100rpx; /* 为底部栏留出空间 */
}
.user-header {
  display: flex;
  align-items: center;
  padding: 40rpx;
  background-color: #fff;
  margin-bottom: 20rpx;
}
.avatar {
  width: 120rpx;
  height: 120rpx;
  border-radius: 60rpx;
  overflow: hidden;
  margin-right: 30rpx;
}
.avatar image {
  width: 100%;
  height: 100%;
}
.user-info .username {
  font-size: 36rpx;
  font-weight: bold;
  margin-bottom: 10rpx;
}
.user-info .user-desc {
  font-size: 28rpx;
  color: #999;
}
.user-menu {
  background-color: #fff;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 30rpx 40rpx;
  border-bottom: 1px solid #f0f0f0;
}
.menu-icon {
  font-size: 40rpx;
  margin-right: 30rpx;
}
.menu-text {
  font-size: 32rpx;
}
</style>